import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/add'
    },
    {
      path: '/add',
      component: () => import('../views/member/MemberAddView.vue')
    },
    {
      path: '/list',
      component: () => import('../views/member/MemberListView.vue')
    },
    {
      path: '/xiangqin',
      component: () => import('../views/member/XiangQinView.vue')
    }
    ,
    {
      path: '/updJifen',
      component: () => import('../views/member/UpdateJJifenView.vue')
    }
    ,
    {
      path: '/chongzhi',
      component: () => import('../views/member/ChongzhiView.vue')
    },
    {
      path: '/radd',
      component: () => import('../views/rights/RightsAddView.vue')
    },
    {
      path: '/rlist',
      component: () => import('../views/rights/RightsListView.vue')
    },
    {
      path: '/Qadd',
      component: () => import('../views/quanyi/QuanYiAddView.vue')
    },
    {
      path: '/Qlist',
      component: () => import('../views/quanyi/QuanYiListView.vue')
    },
    {
      path: '/updQuanyi',
      component: () => import('../views/quanyi/UpdateQuanYiView.vue')
    }

  ]
})

export default router
